/* eslint-disable */
function removal(a) {
    let newArr = a.reduce(
        (unique, item) => (unique.includes(item) ? unique : [...unique, item]),
        []
    );
    return newArr;
}

console.log(removal(['4', '5', '6', '5', '8']));
